﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace WindowsGame1
{
    class GameObjectManager
    {
        List<GameObject> modelo;
        GraphicsDevice device;

        public GameObjectManager(GraphicsDevice gdevice, ContentManager Content)
        {
            device = gdevice;
            modelo = new List<GameObject>();

            modelo.Add(new GameObject(device, Content));
            modelo.Add(new GameObject(device, Content));

            modelo[1].escala(0.2f);
            modelo[1].transladar(0.9f);
        }


        public void Update(GameTime gameTime)
        {

            modelo[0].Update(gameTime);
            /*foreach (GameObject mod in modelo)
            {
                mod.Update(gameTime);
            }*/

        }

        public void Draw(Camera cam)
        {

            foreach (GameObject mod in modelo)
            {
                mod.Draw(cam);
            }

        }
    }
}
